package com.logic.landseaserver.ws.request;

import java.util.Date;

import com.logic.landseaserver.domain.PropertyStatusHistory;

public class PropertyStatusHistoryReq {
    private Integer id;
    private String comment;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public static PropertyStatusHistory convertFromDTO(PropertyStatusHistoryReq req) {
        PropertyStatusHistory history = new PropertyStatusHistory();
        history.setPropertyId(req.getId());
        history.setComment(req.getComment());
        history.setTime(new Date());
        return history;

    }

}